package com.powernode.test03.bean;

public class MyDate {
    public int year;//年
    public int month;//月
    public int day;//日

    public MyDate(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void showDate(int year, int month, int day){
        System.out.println("日期"+year+"年"+month+"月"+day+"日");
    }
    public boolean isLeapYear(int year){
        return (year%4==0&&year%100!=0)||(year%400==0);
    }
}
